﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WPFTestArena
{
	/// <summary>
	/// Interaction logic for BreadCrumbWindow.xaml
	/// </summary>
	public partial class BreadCrumbWindow : Window
	{
		public BreadCrumbWindow()
		{
			InitializeComponent();
		}

		private void AddItemButton_Click(object sender, RoutedEventArgs e)
		{
			this.BC.Items.Add(this.ItemNameTextbox.Text);
		}

		private void SetSeparatorButton_Click(object sender, RoutedEventArgs e)
		{
			this.BC.Separator = this.ItemNameTextbox.Text;
		}

		private void ClearButton_Click(object sender, RoutedEventArgs e)
		{
			this.BC.Items.Clear();
		}

		private void RemoveFirstButton_Click(object sender, RoutedEventArgs e)
		{
			if (this.BC.Items.Count > 0)
				this.BC.Items.RemoveAt(0);
		}

		private void RemoveSecondButton_Click(object sender, RoutedEventArgs e)
		{
			if (this.BC.Items.Count > 1)
				this.BC.Items.RemoveAt(1);
		}

		private void BC_ItemClicked(object sender, eWallet.Windows.Controls.ItemClickedEventArgs e)
		{
		}

		private void ShowHideHomeLabel_Click(object sender, RoutedEventArgs e)
		{
			this.BC.ShowHomeLabel = !this.BC.ShowHomeLabel;
		}
	}
}
